package exception;

public class TestMyEx {
    public static void main(String[] args) {
        try {
            test(11);
        } catch (MyException e) {
            System.out.println(e);
        }
    }

    public static void test(int a) throws MyException {
        if(a > 10){
            throw new MyException(a);
        }
        System.out.println("a=" + a);
    }
}
